﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Bzure.Common.Core;

namespace Bzure.Security.Principal
{

    /// <summary>
    /// 用户实体
    /// </summary>
    [Serializable]
    public class BzureUser : Entity, IPersistenceState, IAwarded
    {
        public BzureUser(string UserID, string UserName)
        {
            this.UserID = UserID;
            this.UserName = UserName;
        }
        /// <summary>
        /// 用户ID
        /// </summary>
        [DataMember]
        public string UserID { get; private set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [DataMember]
        public string UserName { get; private set; }
        /// <summary>
        /// 密码密文
        /// </summary>
        [DataMember]
        public string Password { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [DataMember]
        public int State { get; set; }
        /// <summary>
        /// OpenID
        /// </summary>
        [DataMember]
        public string OpenID { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [DataMember]
        public string EMail { get; set; }
        /// <summary>
        /// 角色值
        /// </summary>
        [DataMember]
        public int RoleValue { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        [DataMember]
        public string NickName { get; set; }

    }

    public interface IAwarded
    {
    }
}
